package com.axon.mvc.events
{
	import com.axon.base.events.AxEvent;

	public class AxBroadcastEvent extends AxEvent
	{
		//////////////////////////////////////////////////////////////////////////////////////////////////////
		
		static public const BROADCAST_FIRED: String = "AxMvcBroadcastEvent";

		//////////////////////////////////////////////////////////////////////////////////////////////////////
		
		private var fMessage	: String;
		private var fBody		: Object;
		private var fExtraInfo	: Object;
		
		//////////////////////////////////////////////////////////////////////////////////////////////////////
		
		public function AxBroadcastEvent(message: String, body: Object = null, extraInfo: Object = null)
		{
			super(BROADCAST_FIRED);
			
			fMessage	= message;
			fBody		= body;
			fExtraInfo	= extraInfo;  
		}
		
		//////////////////////////////////////////////////////////////////////////////////////////////////////
		
		public function get message()		: String { return fMessage; }
		public function get body()			: Object { return fBody; }
		public function get extraInfo()		: Object { return fExtraInfo; }
		
	}
}